package com.ihg.hiex.admin.dao.data;

import java.util.Date;
import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.ihg.hiex.entity.data.data.HolidayType;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface HolidayDao {

    /**
     * @param type
     * @return
     */
    @Query("SELECT day FROM Holiday WHERE disabled = false AND type = :type")
    public List<Date> listDay(@Variable("type") HolidayType type);
    
}
